﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

using System.Deployment.Application; 
using System.Web; 
using System.Collections.Specialized; 



namespace XMK.BatchImport
{
    static class Program
    {

        private static NameValueCollection GetQueryStringParameters()
        {
            NameValueCollection col = new NameValueCollection();
            if (ApplicationDeployment.IsNetworkDeployed)
            {
                string queryString = ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
                col = HttpUtility.ParseQueryString(queryString);
            }
            return col;
        }
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            NameValueCollection user_id = GetQueryStringParameters();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //LoginFrm Userlogin = new LoginFrm();
            //Userlogin.ShowDialog();
            //if (Userlogin.DialogResult.Equals(DialogResult.OK))
            //{
            Application.Run(new Mainfrm(user_id["user_id"].ToString()));//test["test"].ToString()
            //}
        }
    }
}
